# -*- mode: python -*-

Import("env")

env.Library('parse_log_component_settings',
            ['parse_log_component_settings.cpp'],
            LIBDEPS=['$BUILD_DIR/mongo/base',])

# writes multi-byte sequences to console
# to support manual testing of console stream  under Windows
# output should be visually verified under Command Prompt or Power Shell
env.Program('console_test', 'console_test.cpp',
                LIBDEPS=['$BUILD_DIR/mongo/base',
                         '$BUILD_DIR/mongo/unittest/unittest_crutch',
                         '$BUILD_DIR/mongo/unittest/unittest_main'])

env.CppUnitTest('log_test', 'log_test.cpp',
                LIBDEPS=['$BUILD_DIR/mongo/base'])

env.CppUnitTest('log_function_test', 'log_function_test.cpp',
                LIBDEPS=['$BUILD_DIR/mongo/base'])

env.CppUnitTest('rotatable_file_writer_test',
                'rotatable_file_writer_test.cpp',
                LIBDEPS=['$BUILD_DIR/mongo/base'])

env.CppUnitTest(target='parse_log_component_settings_test',
                source='parse_log_component_settings_test.cpp',
                LIBDEPS=['$BUILD_DIR/mongo/base', 'parse_log_component_settings'])
